import guid from '@/libs/guid.js'
import { fabric } from 'fabric'
import EventEmitter from './EventEmitter.class.js'
import Basic from './Basic.js'
export default class Element extends Basic {
  constructor(options) {
    super(options)
    let { component } = options
    this.config = Object.assign(
      {
        mb: 0
      },
      this.config,
      component.config
    )
    this.config.selectable = this.config.selectable == 0 ? 0 : 1
    if (this.config.selectable == 0) {
      component.set({
        selectable: false
      })
    }
  }
  debug() {
    console.log(this)
  }
}
